
#ifndef ANIMAION_H
#define ANIMATION_H

#include "graphics.h"
#include <vector>

using namespace std;

class Animation
{
public:
	Animation();
	Animation(string name, vector<Image*> images, float frameTime);

	string getName(){return name;};
	void setName(string s);

	unsigned int getCurrentFrame(){return currentFrame;};
	void setCurrentFrame(unsigned int n);

	unsigned int getTotalFrames(){return totalFrames;};

	double getFrameTime(){return frameTime;};
	
	vector<Image*> getImages(){return images;};

	Image* getCurrentImage(){return images.at(getCurrentFrame());};


	static Animation* SearchAnimation(vector<Animation*> animations, string name);

private:
	unsigned int currentFrame;
	unsigned int totalFrames;
	float frameTime;

	vector<Image*> images;	
	string name;



};

#endif